
var baseUrl="http://192.168.2.239:8083";//全局的数据请求基础路径
var webBaseUrl = "http://localhost:63342/one-map-web/";//全局前端基础路径
var loginPageUrl = webBaseUrl+'/page/login.html';//数管登录页
var pageSize = 10;//每页的个数(做分页功能的界面)
var pageSize_noPage = 1000;//不用做分页的地方接口默认传值
var sysTimeOut = 1800000;//系统登录过期时间
var loginUrl = {//登录模块路径配置
    tokenUrl:baseUrl+"/auth/oauth/token",
    userInfo:baseUrl+"/admin/user/info",
    menuTree:baseUrl+"/admin/resource/menu/tree"
}
var searchUrl = {
    microDataList:baseUrl+"/search/search/data/items",
    microDataItem:baseUrl+"/search/search/meta/item/",
    creatIndex:baseUrl+"/search/search/index/micro/",
    creatObj:baseUrl+"/search/search/index/microname/",
    creatTip:baseUrl+"/search/search/index/tip",
    creatIndexState:baseUrl+"/search/search/index/getStatus",
    regionLevel:baseUrl+"/search/search/data/get/macro/type",
    creatMacroIndex:baseUrl+"/search/search/index/macro/"
}
var systemUrl = {//系统管理模块路径
    userList:baseUrl+"/admin/user/page",
    userRole:baseUrl+"/admin/role",
    editUser:baseUrl+"/admin/user",
    deleteUser:baseUrl+"/admin/user/id/",
    addUserRrgion:baseUrl+"/admin/sys-user-regions/update",
    addOrganization:baseUrl+"/admin/userorganization/update/user/organization",
    role:{//角色页
        roleList:baseUrl+"/admin/role/page",
        deleteRole:baseUrl+"/admin/role/",
        resourceTree:baseUrl+"/admin/resource/tree"
    },
    authorities:{//菜单页
        resourceTree:baseUrl+"/admin/resource/tree",
        addResource:baseUrl+"/admin/resource",
        deleteResource:baseUrl+"/admin/resource/id/"
    },
    permission:{//权限页
        permissionTree:baseUrl+"/admin/permission/all/tree",
        addPermission:baseUrl+"/admin/permission/save",
        editPermission:baseUrl+"/admin/permission/update",
        deletePermission:baseUrl+"/admin/permission/delete/"
    },
    organization:{//部门页
        organizationTree:baseUrl+"/admin/sys-organization/all/tree",
        addOrganization:baseUrl+"/admin/sys-organization/save",
        editOrganization:baseUrl+"/admin/sys-organization/update",
        deleteOrganization:baseUrl+"/admin/sys-organization/delete/",
    },
    faciRole:{
        sysInfo:baseUrl+"/admin/server/sysInfo"
    },
    sysLog:{
        getLogByType:baseUrl+"/syslog/log/select/by/type"
    }
}
var metadataUrl = {//元数据管理模块
    tableClassify:{//数据表分类
        tableClassifyList:baseUrl+"/meta/meta_category/page",
        addTableClassify:baseUrl+"/meta/meta_category/insert",
        editTableClassify:baseUrl+"/meta/meta_category/update",
        deleteTableClassify:baseUrl+"/meta/meta_category/delete/",
        reportTableClassify:baseUrl+"/meta/meta_category/report/types",
    },
    menuManage:{//目录管理模块
        menuGroup:{//目录分组
            menuGroupList:baseUrl+"/meta/meta_dirrule/select/page",
            addMenuGroup:baseUrl+"/meta/meta_dirrule/insert",
            editMenuGroup:baseUrl+"/meta/meta_dirrule/update",
            deleteMenuGroup:baseUrl+"/meta/meta_dirrule/delete/"
        },
        menuTree:{
            menuTreeList:baseUrl+"/meta/t-meta-dirinfo/gettree",
            addMenuTree:baseUrl+"/meta/t-meta-dirinfo/insert",
            editMenuTree:baseUrl+"/meta/t-meta-dirinfo/update",
            deleteMenuTree:baseUrl+"/meta/t-meta-dirinfo/delete/"
        }
    },
    unitsGroup:{//计量单位模块
        allUnitsGroup:{//分组
            unitsGroupList:baseUrl+"/meta/units/group/page",
            addUnitsGroup:baseUrl+"/meta/units/group/insert",
            editUnitsGroup:baseUrl+"/meta/units/group/update",
            deleteUnitsGroup:baseUrl+"/meta/units/group/delete/",
        },
        idenData:{//单位值
            idenDataList:baseUrl+"/meta/units/value/page",
            addIdenData:baseUrl+"/meta/units/value/insert",
            editIdenData:baseUrl+"/meta/units/value/update",
            deleteIdenData:baseUrl+"/meta/units/value/delete/",
            getUnitsType:baseUrl+"/meta/units/select/type",
        }
    }
}

var microUrl = {//基层（明细数据）模块路径
    group:{//数据分组管理页
        queryList:baseUrl+"/micro/micro_group/select/page",
        addGroup:baseUrl+"/micro/micro_group/insert",
        deleteGroup:baseUrl+"/micro/micro_group/delete/",
        editGroup:baseUrl+"/micro/micro_group/update"
    },
    version:{//版本管理
        queryVersion:baseUrl+"/micro/micro_group_version/select/",
        addVersion:baseUrl+"/micro/micro_group_version/insert",
        deleteVersion:baseUrl+"/micro/micro_group_version/delete/"
    },
    identValue:{//分组值（枚举值）
        queryEnum:baseUrl+"/micro/micro_enum/select/parent_code",
        addEnum:baseUrl+"/micro/micro_enum/insert",
        editEnum:baseUrl+"/micro/micro_enum/update",
        deleteEnum:baseUrl+"/micro/micro_enum/delete/",
        downloadTemplate:baseUrl+"/micro/micro_enum/downLoad",
        uploadExcel:baseUrl+"/micro/micro_enum/uploadExcel",
        analysis:baseUrl+"/micro/micro_enum/analysis"
    },
    template:{//模板管理
        queryList:baseUrl+"/micro/micro_template/select/page",
        addTemplate:baseUrl+"/micro/micro_template/insert",
        deleteTemplate:baseUrl+"/micro/micro_template/delete/",
        editTemplate:baseUrl+"/micro/micro_template/update"
    },
    iden:{//指标操作接口地址
        queryIden:baseUrl+"/micro/micro_idenmeta/select/page",
        idenType:baseUrl+"/micro/micro_idenmeta/select/iden/type",
        procurementType:baseUrl+"/micro/micro_idenmeta/select/procurement/type",
        userType:baseUrl+"/micro/micro_idenmeta/select/use/type",
        addIden:baseUrl+"/micro/micro_idenmeta/insert",
        deleteIden:baseUrl+"/micro/micro_idenmeta/delete/",
        editIden:baseUrl+"/micro/micro_idenmeta/update"
    },
    microObject:{//基层对象
        microMenu:{//明细对象目录
            microMenuList: baseUrl+"/micro/micro_catalog/select",
            addMicroMenu:baseUrl+"/micro/micro_catalog/insert",
            deleteMicroMenu:baseUrl+"/micro/micro_catalog/delete/",
            editMicroMenu:baseUrl+"/micro/micro_catalog/update",
        },
        microList:{//明细数据表
            microDataList:baseUrl+"/micro/micro_tablemeta/select/page",
            microType:baseUrl+"/micro/micro_tablemeta/select/meta/type",//数据表分类查询
            microReportType:baseUrl+"/micro/micro_tablemeta/select/report/type",
            addMicroList:baseUrl+"/micro/micro_tablemeta/insert",
            editMicroList:baseUrl+"/micro/micro_tablemeta/update",
            parentTable:baseUrl+"/micro/micro_tablemeta/set/parent/table",
            deleteMicroList:baseUrl+"/micro/micro_tablemeta/delete/",
        },
        idenMicroMeta:{//指标管理
            idenMicroList:baseUrl+"/micro/micro_idenmeta/select/page",//查询基层指标
            idenMicroIdenType:baseUrl+"/micro/micro_idenmeta/select/iden/type",//查询指标类型
            idenProcurementType:baseUrl+"/micro/micro_idenmeta/select/procurement/type",//查询流入渠道
            idenUseType:baseUrl+"/micro/micro_idenmeta/select/use/type",//查询流出方式
            addIdenMicroList:baseUrl+"/micro/micro_idenmeta/insert",//添加指标
            editIdenMicroList:baseUrl+"/micro/micro_idenmeta/update",//修改指标
            deleteIdenMicroList:baseUrl+"/micro/micro_idenmeta/delete/",//删除指标
            downloadMicro:baseUrl+"/micro/micro_data/download/template",//下载基层对象模板
            uploadMicro:baseUrl+"/micro/micro_data/upload/excel",//上传基层对象模板
            analysisMicro:baseUrl+"/micro/micro_data/analysis",//上传基层对象模板
        },
        idenDbLink:{
            addDbLink:baseUrl+"/micro/dblink/insert",
            dbLinkList:baseUrl+"/micro/dblink/select/all",
            deleteDbLink:baseUrl+"/micro/dblink/delete/",
            dataPversion:baseUrl+"/micro/micro_data/select/pversion",
            searchIdenData:baseUrl+"/micro/micro_data/select/data",
            downLoadIdenData:baseUrl+"/micro/micro_data/download",
            searchTables:baseUrl+"/micro/dblink/select/table/info",
            searchDbTable:baseUrl+"/micro/dblink/select/column/info",
            creatRelationtable:baseUrl+"/micro/dblink/create/relationtable",//中间表导入数据
            creatView:baseUrl+"/micro/dblink/create/view",//创建视图
        },
        setMenu:{
            addSetMenu:baseUrl+"/micro/micro_dir_link/insert",
            searchDirMenu:baseUrl+"/micro/micro_dir_link/select/meta/dirinfo",
            deleteDirMenu:baseUrl+"/micro/micro_dir_link/delete",
        }
    }

}
